Import('env')
Import('options')
env = env.Copy()

sourceFiles = [
    'intern/genfile.c',
    'intern/readblenentry.c',
    'intern/undofile.c',
    'intern/readfile.c',
    'intern/writefile.c',
]

env.Append(CPPPATH=[
    '../blenloader',
    '#/intern/guardedalloc',
    '../blenlib',
    '../blenkernel',
    '../makesdna',
    '../readblenfile',
    '../include',
    '../python',
    '../../kernel/gen_messaging',
    '../render/extern/include',
    '../writestreamglue',
    '../readstreamglue',
])
env.Append(CPPPATH=env['Z_INCLUDE'])

env.Library(target='#$BUILD_DIR/lib/blender_blenloader', source=sourceFiles)
